import {
	createSSRApp
} from 'vue';
import App from './App.vue';
import uviewPlus from 'uview-plus';
import pinia from './stores';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';

pinia.use(piniaPluginPersistedstate);

export function createApp() {
	const app = createSSRApp(App);
	app.use(uviewPlus).use(pinia);

	if(false){
		console.log = () => {};
		console.error = () => {}
		console.info = () => {};
	}

	return {
		app,
	};
}